#!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 题目：取一个整数a从右端开始的4〜7位。

def f1():
    a = 1234
    b = a >> 4
    c = ~(~0 << 4)
    d = b & c
    print('%o\t%o' % (a, d))


f = f1
if __name__ == "__main__":
    f()
